package com.cl.pattern.decorator;

/**
 * 开发商建房子
 * @Description
 * @Author Small
 * @Date 2020/6/12 18:00
 * @Version 1.0
 **/
public class HouseBuilderDecorator extends HouseBuilder {
    private HouseBuilder builder;

    public HouseBuilderDecorator(HouseBuilder builder) {
        this.builder = builder;
    }

    @Override
    public void createHouse() {
        System.out.println("建房前先去房管局报备");
        builder.createHouse();
        System.out.println("房子建好后房管局验收");
    }
}
